package net.zoneland.zrdp.system.service.impl;

import java.util.List;
import org.springframework.stereotype.Service;
import net.zoneland.zrdp.system.mapper.SysNotifyLogMapper;
import net.zoneland.zrdp.system.domain.SysNotifyLog;
import net.zoneland.zrdp.system.service.ISysNotifyLogService;

import javax.annotation.Resource;

/**
 * 统一通知Service业务层处理
 *
 * @author zonevue
 */
@Service
public class SysNotifyLogServiceImpl implements ISysNotifyLogService {

    @Resource
    private SysNotifyLogMapper notifyLogMapper;

    /**
     * 查询统一通知
     *
     * @param id 统一通知主键
     * @return 统一通知
     */
    @Override
    public SysNotifyLog selectNotifyLogById(final Long id) {
        return notifyLogMapper.selectNotifyLogById(id);
    }

    /**
     * 查询统一通知列表
     *
     * @param notifyLog 统一通知
     * @return 统一通知
     */
    @Override
    public List<SysNotifyLog> selectNotifyLogList(final SysNotifyLog notifyLog) {
        return notifyLogMapper.selectNotifyLogList(notifyLog);
    }

    /**
     * 新增统一通知
     *
     * @param notifyLog 统一通知
     * @return 结果
     */
    @Override
    public int insertNotifyLog(final SysNotifyLog notifyLog) {
        return notifyLogMapper.insertNotifyLog(notifyLog);
    }

    /**
     * 修改统一通知
     *
     * @param notifyLog 统一通知
     * @return 结果
     */
    @Override
    public int updateNotifyLog(final SysNotifyLog notifyLog) {
        return notifyLogMapper.updateNotifyLog(notifyLog);
    }

    /**
     * 批量删除统一通知
     *
     * @param ids 需要删除的统一通知主键
     * @return 结果
     */
    @Override
    public int deleteNotifyLogByIds(final Long[] ids) {
        return notifyLogMapper.deleteNotifyLogByIds(ids);
    }

    /**
     * 删除统一通知信息
     *
     * @param id 统一通知主键
     * @return 结果
     */
    @Override
    public int deleteNotifyLogById(final Long id) {
        return notifyLogMapper.deleteNotifyLogById(id);
    }
}
